 
package abstract_ex1;
 
public class CalculadoraSimples {
    public int somar(int a, int b){
        return a+b;
    }
    
    public int subtrair(int a, int b){
        return a-b;
    }
    
    public int multiplicar(int a, int b){
        return a*b;
    }
    
    public int dividir(int a, int b) throws ErroCalc {
       if(b==0)
           throw new ErroCalc(a,b);
        
        return a/b;
    }
    
}
